package com.smartleanx.module.hrm.eums.payroll;

import com.smartleanx.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum PayrollStateEnum implements IntArrayValuable {

    INITIAL(1, "初始状态"),
//    PAY_STUB(2, "已生成工资条"),
    ARCHIVING(90, "归档中"),
    ARCHIVE(99, "归档");

    private final Integer value;
    private final String name;

    static final int[] ARRAYS = Arrays.stream(values()).mapToInt(PayrollStateEnum::getValue).toArray();

    public int[] array() {
        return ARRAYS;
    }
}
